package stark.app.api;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Path;
import retrofit2.http.Query;
import stark.app.alicloud.AliPhoneLocBean;

/**
 * <pre>
 *     author : cfans
 *     time   : 2020/11/20
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public interface AliSDKApiService {

    String PHONE_URL = "http://showphone.market.alicloudapi.com/";
    String FACE_URL = "https://iface.market.alicloudapi.com/ai_market/ai_face_position";

    /**
     * 获取手机归属地信息接口
     */
    @Headers({
            "Authorization: APPCODE 174d1efb4b8a4c5f8a164357510db465"
    })
    @GET("6-1")
    Call<AliPhoneLocBean> aliPhoneDetail(@Query("num") String num);

    /**
     * 根据图片来获取人脸相关信息
     */
    @Headers({
            "Content-Type: application/x-www-form-urlencoded; charset=UTF-8",
            "Authorization: APPCODE 174d1efb4b8a4c5f8a164357510db465"
    })
    @GET("{num}")
    Call<AliPhoneLocBean> aliFaceDetect(@Path("num") String num);
}